<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<div id="myapp">
  <a v-bind:href="url">完整写法 v-bind:href="url"</a>
  <br><br><br><br>
  <a :href="url">缩写 :href="url"</a>
  <br><br><br><br>
  <a href="#" v-on:click="msg(1)">完整写法 v-on:click</a>
  <br><br><br><br>
  <a href="#" @click="msg('asdfds')">缩写 @click</a>
</div>
<script src="//cdn.bootcss.com/vue/2.2.1/vue.js"></script>
<script>
  new Vue({
    el: '#myapp',
    data: {
      url: "http://www.baidu.com",
      msg:function(text){
          alert(text);
      }
    }
  });
</script>
</body>
</html>
